package com.wind.taobao.api.sns.friends.rest
{
	import com.wind.taobao.api.sns.convert.UserConvert;
	import com.wind.taobao.api.sns.model.User;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuUserGetProfileResponse", since="2.0")]
	/**
	 * taobao.sns.user.get Response
	 * @author fxy
	 *
	 */
	public class SNSUserGetResponse extends TaobaoResponse
	{
		public var user:User;

		public function SNSUserGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initUser();
		}

		private function initUser():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("user"))
					user=UserConvert.convertUser(body["rsp"]["user"]);
			}
		}
	}
}